<div class="row">
	<?php $form=$this->beginWidget('CActiveForm', 
      array("id"=>'userform',
      'enableClientValidation'=>true,
      'clientOptions'=>array(
        'validateOnSubmit'=>true,
      ),
      "htmlOptions"=>array(
          "class"=>"form-horizontal")
    )); ?>

         <p class="lead text-center">用户信息</p>
       
        <?php 
        $success =yii::app()->user->getFlash('success');
        if (isset($success)) { ?>
        <div class="alert alert-success">
          <?php echo $success ?>
        </div>
       <?php } ?>
    <div class="control-group">
	    <label class="control-label">用户名:</label>
	    <div class="controls">
	    	<span class="uneditable-input"><?php echo $model->username ?></span>
	    </div>
    </div>

    <div class="control-group">
      <label class="control-label">姓名:</label>
      <div class="controls">
        <?php echo  $form->textField($model,"truename") ?>
       
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">Email:</label>
      <div class="controls">
        <?php echo  $form->textField($model,"email") ?>
        
      </div>
    </div>

    <div class="control-group">
          <div class="controls">
            <?php echo CHtml::submitButton('确定',array("class"=>'btn')); ?>
          </div>
    </div>
    <?php $this->endWidget(); ?>
</div>